<table cellspacing="0" class="table">
    <tr class="table-row bg-f5f8fa height-50">
        <th *ngFor="let item of tableHead;let i = index" class="table-cell border-no-l-t color-333 table-row-content" [ngClass]="(i+1)===tableHead.length?'border-no-l-r-t':'border-no-l-t'">
            <div class="ui-cell-data ellipsis-td-2" [ngStyle]="{'width':item.width}">
                <strong>{{item.header}}</strong>
            </div>
        </th>
    </tr>

    <tr *ngFor="let row of values;let i = index" class="table-row-bg height-50">
        <td *ngFor="let item of tableHead; let j =index" class="table-cell border-no-l-t table-row-content" [ngClass]="(i+1)===values.length?(j+1)===tableHead.length?'border-no':'border-no-l-b-t':(j+1)===tableHead.length?'border-no-l-r-t':'border-no-l-t'">
            <div *ngIf="!item.sort && !item.href" class="ui-cell-data ellipsis-td-2" [attr.title]="getResolveData(row,item)" [ngStyle]="{'width':item.width}">{{getResolveData(row,item)}}</div>
            <div *ngIf="!item.sort && item.href" class="ui-cell-data ellipsis-td-2" [ngStyle]="{'width':item.width}">
                <a *ngIf="searchData" class="color-1a91eb" [title]="getResolveData(row,item)" target="_blank" [routerLink]="[item.href,getResolveData(row,item,item.search),searchData]">{{getResolveData(row,item)}} </a>
                <a *ngIf="!searchData" class="color-1a91eb" [title]="getResolveData(row,item)" target="_blank" [routerLink]="[item.href,getResolveData(row,item)]">{{getResolveData(row,item)}} </a>
            </div>
            <div *ngIf="item.sort" class="ui-cell-data ellipsis-td-2" [ngStyle]="{'width':item.width}">
                {{i+1}}
            </div>
        </td>
    </tr>

    <tr *ngIf="values?.length<=0" class="table-row-bg">
        <td class="table-cell table-row-content border-no data-no" [attr.colspan]="tableHead.length">
            <span>没有搜到您想要的数据</span>
        </td>
    </tr>

</table>